package com.shangting.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shangting.common.entity.UserInfo;
import com.shangting.common.enums.BaseStatus;
import com.shangting.web.mapper.UserInfoMapper;
import com.shangting.web.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liubo
 * @description 针对表【user_info(用户信息表)】的数据库操作Service实现
 * @createDate 2023-07-24 15:48:00
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo>
        implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public void updateUserStatus(Long id, BaseStatus status) {
        userInfoMapper.updateUserStatus(id, status);
    }
}
